const trace = (function () {
    let _trace = config.DEBUG;
    let _trace_queue = 1;
    function trace(text, ...args) {
        if (_trace) {
            // console.warn('[' + _trace_queue++ + ']', text, ...args);

            window.showDevInfo([
                {
                    text: `Debug Stack ${_trace_queue++}`,
                    backgroundColor: "#ef5d5d",
                    color: "#FFF"
                },
                {
                    text: text,
                    backgroundColor: "#2b9939",
                    color: "#FFF"
                }
            ], "warn", ...args);
        }

        return true;
    };

    return trace;
})();
const debug = trace;
